package com.liuyan.dao;

import com.liuyan.pojo.Content;

import java.util.List;
import java.util.Map;

/**
 * Created by pc on 2016/1/5.
 */
public interface IContentDao {

    List<Content> getAllContent();

    int writeContent(Content contentBean);

    int getMaxFloor();

    int deleteContent(int contentId);

    int getAllCount();

    List<Content> getContentOfPage(int currentPage);

    List<Content> contentListForLevelOne(int pageSize);

    List<Content> contentListForLevelTwo(int pageSize);

    List<Content> getContentOfPageForLevelOne(Map<Object,Integer> map);

    List<Content> getContentOfPageForLevelTwo(Map<Object,Integer> map);

    int getLevelByContentId(int contentId);

    int deleteContentByFloor(int contentId);
}
